package com.yonyougov.devops.cruxcisupport.enums;

import lombok.Getter;

/**
 * 环境变量类型
 */
@Getter
public enum EnvInfoTypeEnum implements BaseEnum {
    defaultString("默认字符串", 0),
    metadateRef("引用k8s元数据", 1),
    fileMap("文件映射", 2),
    ;


    private String value;
    private int code;

    EnvInfoTypeEnum(String value, int code) {
        this.value = value;
        this.code = code;
    }

    @Override
    public boolean equals(Integer code) {
        return code.equals(this.code);
    }
}
